package com.spring.mvc.pojo;

import java.io.Serializable;

import com.spring.mvc.util.ErrCode;
import com.spring.mvc.util.Prompt;

/**
 * Unified return interface
 * @author Administrator
 *
 */
@SuppressWarnings("serial")
public class CallResult implements Serializable {

	/**
	 * define error code
	 */
	private String errCode=ErrCode.SUCCESS;
	
	/**
	 * define error desc
	 */
	private String errDesc=Prompt.get("success");
	
	/**
	 * storage return object
	 */
	private Object object;
	
	public String getErrCode() {
		return errCode;
	}
	public void setErrCode(String errCode) {
		this.errCode = errCode;
	}
	public String getErrDesc() {
		return errDesc;
	}
	public void setErrDesc(String errDesc) {
		this.errDesc = errDesc;
	}
	public Object getObject() {
		return object;
	}
	public void setObject(Object object) {
		this.object = object;
	}
	
	public void setErrInfo(String errCode,String errDesc){
		this.errCode=errCode;
		this.errDesc=errDesc;
	}
}
